<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button type="button">按钮</button>
		<script type="text/javascript">
			var button = document.querySelector('button')
			button.addEventListener('click',()=>{
				console.log('listener1');
				Promise.resolve().then(()=>console.log('micro task1'))
			})
			button.addEventListener('click',()=>{
				console.log('listener2');
				Promise.resolve().then(()=>console.log('micro task2'))
			})
			button.click();
		</script>
	</body>
</html>
